<!--<?php
print <<<EOT
-->

<script src="css/edit.js"></script>
<script>
<!--

function addCart(id) {

    var str = 'buy_num_form_'+id;
    var buy_num = document.getElementById(str).value;

    if (!IsNumber(buy_num)) {
        alert('Please enter the order qty !');
        return false;
    } else {
        url = "cart_view.php?act=add&inventorytype=0&inventoryid=0&pid="+id+"&js=1&addnum="+buy_num;
        document.getElementById('addtocontentiframe').src=url;
    }

}

//-->
</script>

        <tr>
          <td background="./images/colour/jf_colour_gold_100.gif" width="1"><img src="./images/spacer.gif" width="1" height="1" alt=""></td>
          <td bgcolor="FFFFFF" width="10"><img src="./images/spacer.gif" width="10" height="1" alt=""></td>
          <td bgcolor="FFFFFF" width="720" align="left" valign="top"><div><img name="" src="./images/spacer.gif" width="720" height="10" alt=""></div>
            <table width="720" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="150" background="./images/nav/jf_nav_main_bkgd.gif" align="left" valign="top"><table width="150" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><a href="index.php"><img src="./images/nav/jf_nav_logo.gif" width="150" height="210" alt="jans2en furniture" border="0"></a></td>
                    </tr>

<!--
EOT;
foreach ($LEFT_MENU_ARY as $k=>$v) { 
print <<<EOT
--> 

					<tr>
                      <td><a href="{$v['url']}" onMouseOver="MM_swapImage('jf_nav_menu_$k','','./images/nav/{$v['pic']}-over.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="./images/nav/{$v['pic']}.gif" alt="{$v['name']}" name="jf_nav_menu_$k" width="150" height="20" id="jf_nav_menu_$k" border="0"></a></td>
                    </tr>

<!--
EOT;
} 
print <<<EOT
--> 

                  </table></td>
                <td background="./images/colour/jf_colour_navy_100.gif" width="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                <td width="568" align="left" valign="top" background="./images/colour/jf_colour_navy_07.gif"><table width="568" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td background="./images/colour/jf_colour_navy_100.gif" height="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                    </tr>
                    <tr>
                      <td bgcolor="FFFFFF" align="left" valign="middle" class="breadcrumb" height="14">&nbsp;<a href='index.php'>Home</a>&gt;<span class='breadcrumbActive'>Wishlist</span> </td>
                    </tr>
                  </table>
                  <div><img src="./images/section_header/jf_section_header_wish_list2.jpg" alt="How To Order" name="jf_section_header_placer" width="568" height="95" id="jf_section_header_placer"></div>
                  <div><img name="" src="./images/spacer.gif" width="568" height="4" alt=""></div>
                  <div><img name="" src="./images/spacer.gif" width="568" height="4" alt=""></div>
                  
                  <table width="568" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>
                      <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="10" alt=""></td>
                      <td bgcolor="FFFFFF" width="548"><div><img name="" src="./images/spacer.gif" width="538" height="5" alt=""></div>
                        <table width="538" border="0" cellspacing="0" cellpadding="0">
                          <!--tr>
                            <td width="113"><img src="./images/page_title/jf_page_title_a_look_at_jans2en.gif" alt="A Look at jans2en" name="jf_page_title" width="538" height="40" id="jf_page_title"></td>
                          </tr-->
                          <tr>
                            <td align="center" class="pageTitleText">{$page_show['str']}</td>
                          </tr>
                          <tr>
                            <td align="center" class="pageListings">{$page_show['pagelink']}</td>
                          </tr>
                        </table>
                        <div><img name="" src="./images/spacer.gif" width="538" height="5" alt=""></div></td>
                      <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="10" alt=""></td>
                      <td  background="./images/colour/jf_colour_navy_15.gif" align="left" valign="top" width="1"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                      <td width="4"><img name="" src="./images/spacer.gif" width="4" height="4" alt=""></td>
                    </tr>
                    <tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="2" alt=""></td>
                      <td  background="./images/colour/jf_colour_navy_15.gif" align="left" valign="top" height="1" colspan="4"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                      <td width="4"><img name="" src="./images/spacer.gif" width="4" height="2" alt=""></td>
                    </tr>
                  </table>
                  
                  <div><img name="" src="./images/spacer.gif" width="568" height="4" alt=""></div>
                  <table width="568" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>
                      <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="10" alt=""></td>
                      <td bgcolor="FFFFFF" width="538"><img name="" src="./images/spacer.gif" width="538" height="10" alt=""></td>
                      <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="10" alt=""></td>
                      <td width="1" align="left" valign="top" background="./images/colour/jf_colour_navy_15.gif"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                      <td width="4"><img name="" src="./images/spacer.gif" width="4" height="4" alt=""></td>
                    </tr>
                    <tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>
                      <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="245" alt=""></td>
                      <td bgcolor="FFFFFF" width="538" class="text" align="left" valign="top">
                        
                        <table width="538" border="0" cellspacing="0" cellpadding="0" align=center>
			    	      <tr>
			    	        <TD class=titles vAlign=center align=left width=50 height=20>&nbsp;</TD>
			                <TD class=titles vAlign=center align=middle width=10 height=20><!--List--></TD>
			                <TD class=titles vAlign=center align=left width=300 height=20 colspan=2>Product Details</TD>
			                <TD class=titles vAlign=center align=middle colSpan=3 height=20>Actions</TD>
			              </TR>
   
<!--
EOT;
$index = 1;
foreach ($product_ary as $v) {
    if (trim($v['small_pic']) == "" || !file_exists("./attachments/" . $v['small_pic'])) {
        $v['small_pic'] = 'no_113.gif';
    }
    $v['width']   = number_format($v['width'], 3, '.', ',');
    $v['length']  = number_format($v['length'], 3, '.', ',');
    $v['height']  = number_format($v['height'], 3, '.', ',');
    $v['width2']  = number_format($v['width2'], 3, '.', ',');
    $v['length2'] = number_format($v['length2'], 3, '.', ',');
    $v['height2'] = number_format($v['height2'], 3, '.', ',');
    $v['cbm']     = number_format($v['cbm'], 3, '.', ',');
    $v['cuft']    = number_format($v['cuft'], 3, '.', ',');
print <<<EOT
-->   
			              <tr><td colspan=8 bgcolor="#000000" height=1></td></tr>
			              <tr><td colspan=8 height=5></td></tr>
			    	      <tr vAlign="top">
			    	        <TD class=text align=left ><a onclick="return confirm('Do you really want to remove this from your wish list?')" href="wishlist_details_view.php?act=delone&wid=$wid&pid={$v['id']}"  onmouseover="jf_button_remove_{$v['id']}.src='./images/button/jf_button_remove-over.gif'" onmouseout="jf_button_remove_{$v['id']}.src='./images/button/jf_button_remove.gif'" ><img src="./images/button/jf_button_remove.gif" alt="Remove This Item From Your Wish List" name="jf_button_remove_01" width="50" height="13" border="0" id="jf_button_remove_{$v['id']}"></a></TD>
			                <TD class=text align=middle>&nbsp;</TD>
			                <TD class=text align=left width=113><a href="product_details.php?pid={$v['id']}"><IMG class=picture height=113 alt="Image of {$v['code']}" src="./attachments/{$v['small_pic']}" width=113 border=0></a></TD>
			                <TD class=text align=left width=170>
			                <table>
			                <tr>
			                <td width=3%></td>
			                <td colspan=5 class="pageTitleText">{$v['code']}</td>
			                </tr>
			                
			                <!--tr>
			                <td width=3%></td>
			                <td width=20%></td>
			                <td width=10%></td>
			                <td><STRONG>[cm]</STRONG></td>
			                <td></td>
			                <td><STRONG>[inch]</STRONG></td>
			                </tr-->
			                
			                <tr>
			                <td width=3%></td>
			                <td width=20%><STRONG>W:</STRONG></td>
			                <td width=12% align="right">{$v['width']}</td>
			                <td><STRONG>[cm]</STRONG></td>
			                <td align="right">{$v['width2']}</td>
			                <td><STRONG>[inch]</STRONG></td>
			                </tr>
			                
			                <tr>
			                <td width=3%></td>
			                <td width=20%><STRONG>D:</STRONG></td>
			                <td width=12% align="right">{$v['length']}</td>
			                <td><STRONG>[cm]</STRONG></td>
			                <td align="right">{$v['length2']}</td>
			                <td><STRONG>[inch]</STRONG></td>
			                </tr>
			                
			                <tr>
			                <td width=3%></td>
			                <td width=20%><STRONG>H:</STRONG></td>
			                <td width=12% align="right">{$v['height']}</td>
			                <td><STRONG>[cm]</STRONG></td>
			                <td align="right">{$v['height2']}</td>
			                <td><STRONG>[inch]</STRONG></td>
			                </tr>
			                
			                
			                <tr>
			                <td width=3%></td>
			                <td width=20%><STRONG>Cbm:</STRONG></td>
			                <td align="right">{$v['cbm']}</td>
			                <td colspan=3></td>
			                </tr>
			                
			                <tr>
			                <td width=3%></td>
			                <td width=20%><STRONG>Cuft:</STRONG></td>
			                <td align="right">{$v['cuft']}</td>
			                <td colspan=3></td>
			                </tr>
			                
			                
			                
			                </table>			                 
			                </TD>
			                <TD class=text align=middle colSpan=3 valign="bottom">
			                <div><strong>Order Qty</strong> :<input type=text size=4 name="buy_num_form_{$v['id']}"  id="buy_num_form_{$v['id']}"></div><br>
			                <a href="javascript:;"  onclick="addCart('{$v['id']}')"  onMouseOver="MM_swapImage('jf_button_add_to_cart_{$v['id']}','','./images/button/jf_button_add_to_container-over.gif',1)" onmouseout="MM_swapImgRestore()">
			                <img src="./images/button/jf_button_add_to_container.gif" alt="Add to Container" name="jf_button_add_to_cart_{$v['id']}" width="120" height="20" border="0" align="absmiddle" id="jf_button_add_to_cart_{$v['id']}">
			                </a>
			                
                            
			                </TD>
			    	      </tr>
			    	      
			    	      <tr><td colspan=8 height=5></td></tr>

<!--
EOT;
    $index++;
} 
print <<<EOT
-->     	 
    	                   
    	    			</table>
                      
                      </td>
                      <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="245" alt=""></td>
                      <td width="1" align="left" valign="top" background="./images/colour/jf_colour_navy_15.gif"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                      <td width="4"><img name="" src="./images/spacer.gif" width="4" height="4" alt=""></td>
                    </tr>
                    <tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>
                      <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="10" alt=""></td>
                      <td bgcolor="FFFFFF" width="538"><img name="" src="./images/spacer.gif" width="538" height="10" alt=""></td>
                      <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="10" alt=""></td>
                      <td width="1" align="left" valign="top" background="./images/colour/jf_colour_navy_15.gif"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                      <td width="4"><img name="" src="./images/spacer.gif" width="4" height="4" alt=""></td>
                    </tr>
                    <tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="1" alt=""></td>
                      <td width="10" align="left" valign="top" background="./images/colour/jf_colour_navy_15.gif"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                      <td background="./images/colour/jf_colour_navy_15.gif" width="538"><img name="" src="./images/spacer.gif" width="538" height="1" alt=""></td>
                      <td background="./images/colour/jf_colour_navy_15.gif" width="10"><img name="" src="./images/spacer.gif" width="10" height="1" alt=""></td>
                      <td width="1" align="left" valign="top" background="./images/colour/jf_colour_navy_15.gif"><img name="" src="./images/colour/jf_colour_navy_15.gif" width="1" height="1" alt=""></td>
                      <td width="4"><img name="" src="./images/spacer.gif" width="4" height="1" alt=""></td>
                    </tr>
                   </table>                  
                  
                   <div><img name="" src="./images/spacer.gif" width="568" height="4" alt=""></div>
                   <iframe name='addtocontentiframe' width=0 height=0 src="about:blank" id='addtocontentiframe'></iframe>
                   
                   
                   <table width="568" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>
                      <td bgcolor="FFFFFF" width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>
                      <td bgcolor="FFFFFF" width="548"><table width="548" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="548" height="14" align="center" valign="middle" class="pageListings">{$page_show['pagelink']}</td>
                          </tr>
                        </table></td>
                      <td bgcolor="FFFFFF" width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>
                      <td  background="./images/colour/jf_colour_navy_15.gif" align="left" valign="top" width="1"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                      <td width="4"><img name="" src="./images/spacer.gif" width="4" height="4" alt=""></td>
                    </tr>
                    <tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="2" alt=""></td>
                      <td  background="./images/colour/jf_colour_navy_15.gif" align="left" valign="top" height="1" colspan="4"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                      <td width="4"><img name="" src="./images/spacer.gif" width="4" height="2" alt=""></td>
                    </tr>
                  </table>
                  
                  <div><img name="" src="./images/spacer.gif" width="568" height="4" alt=""></div>
                  
                  <div><img name="" src="./images/spacer.gif" width="10" height="2" alt=""></div></td>
                <td background="./images/colour/jf_colour_navy_100.gif" width="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
              </tr>
              <tr>
                <td background="./images/nav/jf_nav_main_bkgd.gif" wid><img name="" src="./images/spacer.gif" width="150" height="20" alt=""></td>
                <td background="./images/colour/jf_colour_navy_100.gif" width="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                <td><table width="568" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td background="./images/colour/jf_colour_navy_100.gif" height="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                      <td background="./images/colour/jf_colour_navy_100.gif" height="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                    </tr>
                    <tr>
                      <td align="left" valign="middle" height="18"><a href="wishlist_view.php" onMouseOver="MM_swapImage('jf_button_return_to_wishlist','','./images/button/jf_button_return_to_wishlist_management-over.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="./images/button/jf_button_return_to_wishlist_management.gif" alt="" name="jf_button_return_to_wishlist" width="158" height="13" border="0" id="jf_button_return_to_wishlist"></a></td>
                      <td align="right" valign="middle" height="18"><a href="#top" onMouseOver="MM_swapImage('jf_button_back_to_top','','./images/button/jf_button_back_to_top-over.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="./images/button/jf_button_back_to_top.gif" alt="Back to top" name="jf_button_back_to_top" width="70" height="13" border="0" id="jf_button_back_to_top"></a></td>
                    </tr>
                    <tr>
                      <td background="./images/colour/jf_colour_navy_100.gif" height="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                      <td background="./images/colour/jf_colour_navy_100.gif" height="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                    </tr>
                  </table></td>
                <td background="./images/colour/jf_colour_navy_100.gif" width="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
              </tr>
            </table>
            <div><img name="" src="./images/spacer.gif" width="720" height="10" alt=""></div></td>
          <td bgcolor="FFFFFF" width="10"><img src="./images/spacer.gif" width="10" height="10" alt=""></td>
          <td background="./images/colour/jf_colour_gold_100.gif" width="1"><img src="./images/spacer.gif" width="1" height="1" alt=""></td>
        </tr>
        
<!--
EOT;
?>-->